<?php
/*
 * @Description: 
 * @Author: Simon
 * @Date: 2020-07-12 18:06:23
 * @LastEditTime: 2020-07-12 18:11:59
 * @LastEditors: Simon
 */ 
/**
 * Credentials
 * PHP version 5
 *
 * @category Class
 * @package  LuckIn
 * @author   Simon
 * @link     https://pay.weixin.qq.com
 */

namespace LuckIn\GuzzleMiddleware;

use Psr\Http\Message\RequestInterface;

/**
 * Interface abstracting Credentials.
 *
 * @package  LuckIn
 * @author   Simon
 */
interface Credentials
{
    /**
     * Get schema of credentials
     *
     * @return string
     */
    public function getSchema();

    /**
     * Get token of credentials
     *
     * @param RequestInterface $request Api request
     *
     * @return string
     */
    public function getToken(RequestInterface $request);
}
